package luo.Controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import luo.Service.RadarLogService;
import luo.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Description:
 * @Author:let_free
 * @Date:2024/9/22/15:27
 **/
@RestController
@RequestMapping("/history")
@Api(tags = "历史对比")
public class historyController {
    @Autowired
    private RadarLogService radarLogService;

    @GetMapping("/getHistory")
    @ApiOperation(value = "获取历史对比文件名")
    public AjaxResult getHistory(@RequestParam(required = false) String startTime, @RequestParam(required = false) String endTime, @RequestParam Integer pageSize, @RequestParam Integer pageNum) {
        return AjaxResult.success(null, radarLogService.getHistory(pageSize, pageNum, startTime, endTime));
    }
}
